package com.hexinfo.dmpro.sparing.dto;

import com.hexinfo.dmpro.sparing.model.HdfsHeatBackup;
import com.hexinfo.dmpro.sparing.model.UatSyncLogsTask;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * 规则过滤调用热备功能实体类
 * 调用热备功能方法的传参
 */
@Data
public class RuleToDistCPDTO {

    //1：有源分区字段，2：无源分区字段（时间窗口）
    @NotBlank
    private String backupSort;
    //同步的源名
    @NotBlank
    private String sourceDataName;
    //比对sql对象
    private List<WhereScriptDTO> whereScriptDTOS;
    //消息中心id
    @NotBlank
    private String messageId;
    //hdfs路径（有这个源分区字段的所有表）
    @NotNull
    private List<HdfsHeatBackup> hdfsHeatBackups;
    //获取上次热备Data
    private Date date;
    //任务信息
    private UatSyncLogsTask uatSyncLogsTask;

    private Set<String> syncRuleConfSet;

}
